﻿@{
    ViewBag.Title = "AdvanceSearch";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container-fluid">
    <form action="/orderview/advancesearch" method="POST" id="fr-orderadvancesearch">
        <div class="row-fluid">
            <fieldset class="span6" style="height: 235px;">
                <legend>Product Search Options</legend>
                <div class="row-fluid">
                    <div class="span4">Manufacturer</div>
                    <div class="span8">
                        @Html.DropDownList("CompanyID", null, new { @class = "input-block-level" })
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Product Name</div>
                    <div class="span8">
                        <input type="text" name="ProductName" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">Product Option</div>
                    <div class="span8">
                        <input type="text" name="ProductOption" class="input-block-level" />
                    </div>
                </div>
            </fieldset>
            <fieldset class="span6">
                <legend>Order Search Options</legend>
                <div class="row-fluid">
                    <div class="span3">OrderRef</div>
                    <div class="span9">
                        <input type="text" name="OrderRef" class="input-block-level" />
                    </div>
                </div>
                @Html.Partial("Partial/_DateRange")
                <div class="row-fluid">
                    <label>
                        <input type="checkbox" class="cbcheck" name="showCancelled" />
                        Show cancelled orders</label>
                </div>
            </fieldset>
        </div>
        <div class="row-fluid">
            <fieldset>
                <legend>Customer Search Options</legend>
                <div class="row-fluid">
                    <div class="span1">Forename</div>
                    <div class="span3">
                        <input type="text" name="Forename" class="input-block-level" />
                    </div>
                    <div class="span1">Surname</div>
                    <div class="span4">
                        <input type="text" name="Surname" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1">Address</div>
                    <div class="span3">
                        <input type="text" name="Address" class="input-block-level" />
                    </div>
                    <div class="span5">
                        <input type="text" name="Addressline2" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1">Town</div>
                    <div class="span8">
                        <input type="text" name="Town" class="input-block-level" />
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span1">Postcode</div>
                    <div class="span2">
                        <input type="text" name="Postcode" class="input-block-level" />
                    </div>
                    <div class="span1">Telephone</div>
                    <div class="span2">
                        <input type="text" name="Telephone" class="input-block-level" />
                    </div>
                    <div class="span1">Email</div>
                    <div class="span2">
                        <input type="text" name="Email" class="input-block-level" />
                    </div>
                </div>
            </fieldset>
            <div class="row-fluid">
                <input type="submit" class="btn btn-primary" value="Run Search" />
            </div>
        </div>
    </form>
    <div class="orderadvancesearchresult overflow-auto"></div>
</div>
